<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/21
 * Time: 14:28
 */
namespace Home\Model;
use Think\Model;
class MatchModel extends Model {

    protected $_validate = array(
        array('match_title', 'require', '比赛标题不能为空！'),
        array('match_addr', 'require', '比赛官网地址不能为空！'),
    );

    function getdate(){
        return date('Y-m-d');
    }

}